/**
 * 
 */
package org.xelnaga.defiler.web.controller.fileasset;

import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.codehaus.jackson.map.annotate.JsonSerialize.Inclusion;

/**
 * @author qijb
 *
 */
@JsonSerialize(include = Inclusion.NON_NULL)
public class FileAssetMessage {
	public static final Integer STATUS_SUCCESS = 0;
	public static final Integer STATUS_FAILURE = 1;
	private String name;
	private String size;
	private String filePath;
	private Integer width;
	private Integer height;
	private Date createDate;
	private boolean success;
	private boolean ifImage;
	private String message;
	private Integer status;
	/**
	 * 
	 */
	public FileAssetMessage() {
		// TODO Auto-generated constructor stub
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}

	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}


	public boolean isIfImage() {
		return ifImage;
	}

	public void setIfImage(boolean ifImage) {
		this.ifImage = ifImage;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "FileAssetMessage [name=" + name + ", size=" + size
				+ ", filePath=" + filePath + ", width=" + width + ", height="
				+ height + ", createDate=" + createDate + "]";
	}

}
